#ifndef SRVORDERSUCCESS_H
#define SRVORDERSUCCESS_H

#include "baseptc.h"

namespace protocal{
class SrvOrderSuccess : public BasePtc
{
public:
    SrvOrderSuccess()
    {
        this->source = SERVER;
        this->srv_command = SRV_ORDER_SUCCESS;
        this->size = sizeof(SrvOrderSuccess);
    }

    int isSucc;         //if the client was choosen by others , isSucc should be 0
    char order_id[10];
    union
    {
       typedef struct{
            char client_name[10];
            //photo,not define yet
            //GPS start_point;
            //GPS terminal_point;
            //short timeout;
            char mobile_num[12];
        }srv2car;

        typedef struct{
            char driver_name[10];
            char mobile_numb[12];
        }srv2client;

        srv2car m_srv2car;
        srv2client m_srv2client;
    }order;
};
}
#endif // SRVORDERSUCCESS_H
